package com.carb.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;

@Data
@Schema(description = "新增物品传递的数据模型")
public class ItemAddDTO implements Serializable {

    @Schema(description = "物品名称",
            requiredMode = Schema.RequiredMode.REQUIRED)
    private String name;

    @Schema(description = "物品类别id",
            requiredMode = Schema.RequiredMode.REQUIRED)
    private Long itemCategoryId;

    @Schema(description = "品牌",
            requiredMode = Schema.RequiredMode.REQUIRED)
    private String brand;

    @Schema(description = "物品价格 (单位为分)",
            requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer price;

    @Schema(description = "最小库存",
            requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer minStock;

    @Schema(description = "物品描述",
            requiredMode = Schema.RequiredMode.REQUIRED)
    private String description;

    @Schema(description = "物品图片链接",
            requiredMode = Schema.RequiredMode.REQUIRED)
    private String picUrl;

}
